$(function() {	
	init();
	start();
});

var count;
var $panel;
var $span;

function init() {
	count = 0;
	$panel = $("#panel");
}

function start() {
	setInterval(addNumber, 20);
}

function addNumber() {	
	$span = $("<span></span>");
	$span.css({
		color : "#" + (parseInt(Math.random() * 0xffffff)).toString(16),
		fontSize : (10 + parseInt(Math.random() * 40)) + "px",
		display : "inline-block"
	});

	$span.text(count++);
	$span.appendTo($panel);

	window.scrollTo(0, document.body.scrollHeight);
}